package org.feiye.studyday11;

import java.util.Scanner;

public class TestVistor {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		while (true) {
			Vistor vistor = new Vistor();
				System.out.println("请输入姓名：");
				vistor.name = in.next();
			if (vistor.name.equals("n")) {
				break;
			}
				System.out.println("请输入年龄：");
				vistor.age = in.nextInt();
				vistor.showPrice();
		}
		System.out.println("程序结束！");
	}
}
